home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 December
/
Chip_2002-12_cd1.bin
/
oddech
/
tobogan
/
Toboggan_Run.exe
/
scripts
/
DefineButton2_667
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2002-05-24
|
895b
|
34 lines
on(release){
_parent.gamecontrol.attempt = 1;
_parent.gamecontrol.level += 1;
if(_parent.gamecontrol.level == 2)
{
_root.pushmovie.ringtop.gotoAndPlay("level2start");
}
else if(_parent.gamecontrol.level == 3)
{
_root.pushmovie.ringtop.gotoAndPlay("level3start");
}
else if(_parent.gamecontrol.level == 4)
{
_root.pushmovie.ringtop.gotoAndPlay("level4start");
}
else if(_parent.gamecontrol.level == 5)
{
_root.pushmovie.ringtop.gotoAndPlay("level5start");
}
else if(_parent.gamecontrol.level == 6)
{
_root.pushmovie.ringtop.gotoAndPlay("level6start");
}
else if(_parent.gamecontrol.level >= 7)
{
_root.pushmovie.ringtop.gotoAndPlay("bonusround");
}
else if(_parent.gamecontrol.level >= 8)
{
_root.gotoAndPlay("credits");
}
_parent.gotoAndPlay(1);
}